Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
A code that identifies the voucher.
"2CpRCE2c"
Body
Specify the voucher validation context using the request body parameters.
- Vouchers Validate Discount Request Body
- Vouchers Validate Gift Request Body
- Vouchers Validate Loyalty Request Body
Request schema model for validating a voucher using POST v1/vouchers/{code}/validate
.
Customer's information.
Order information.
Schema model for session lock object. The session object is required to establish a session between multiple parallel validation and redemption requests. If you only send the type parameter in the request, then by default the session lock will be established for 7 days. Read more on establishing a validation session.
Response
Returns information whether the voucher is valid in the context of the parameter values provided in the request body.
- Vouchers Validate Valid Response Body
- Vouchers Validate Invalid Response Body
Response body schema for POST v1/vouchers/{code}/validate
.
Indicates whether the voucher is valid within the context of the parameters provided in the request body.
Voucher code.
Contains list of items that qualify in the scope of the discount. These are definitions of included products, SKUs, and product collections. These can be discounted.
Contains list of items that do not qualify in the scope of the discount. These are definitions of excluded products, SKUs, and product collections. These CANNOT be discounted.
The metadata object stores all custom attributes assigned to the code. A set of key/value pairs that you can attach to a voucher object. It can be useful for storing additional information about the voucher in a structured format.
Hashed order source ID.
Voucher's parent campaign name.
Voucher's parent campaign's unique ID.
Contains information about discount.
- Amount
- Unit
- Unit Multiple
- Percent
- Fixed
Gift object response Contains current gift card balance information.
Contains the cost of reward in points.
Contains information about the reward that is being validated.
Order information.
Schema model for session lock object. The session object contains information about the session key that was used to establish a session between multiple parallel validation and redemption requests.
Activation timestamp defines when the voucher starts to be active in ISO 8601 format. Voucher is inactive before this date.
Expiration timestamp defines when the voucher expires in ISO 8601 format. Voucher is inactive after this date.